{% block sw_first_run_wizard_mailer_selection %}
<div class="sw-first-run-wizard-mailer-selection">
    <sw-loader v-if="isLoading" />

    <img
        class="sw-first-run-wizard-mailer-selection__illustration"
        :src="assetFilter('/administration/administration/static/img/first-run-wizard/mailer-selection.svg')"
        alt=""
    >

    <h4 class="sw-first-run-wizard-mailer-selection__headline">
        <strong>
            {{ $tc('sw-first-run-wizard.mailerSelection.headline') }}
        </strong>
    </h4>
    <p>
        {{ $tc('sw-first-run-wizard.mailerSelection.description') }}
    </p>

    <p class="sw-first-run-wizard-mailer-selection__subline">
        <strong>
            {{ $tc('sw-first-run-wizard.mailerSelection.chooseSubline') }}
        </strong>
    </p>

    <div class="sw-first-run-wizard-mailer-selection__selections">
        <div
            class="sw-first-run-wizard-mailer-selection__selection"
            :class="{ 'is--selected': mailAgent === 'local' }"
            role="button"
            tabindex="0"
            @click="setMailAgent('local')"
            @keydown.enter="setMailAgent('local')"
        >

            <sw-help-text
                class="sw-first-run-wizard-mailer-selection__help-text"
                :text="$tc('sw-first-run-wizard.mailerSelection.localOptionHelptext')"
            />

            <mt-icon
                name="regular-paper-plane"
                class="sw-first-run-wizard-mailer-selection__selection-icon"
            />
            <p>
                {{ $tc('sw-first-run-wizard.mailerSelection.localOption') }}
                <br>
                <span class="sw-first-run-wizard-mailer-selection__text-light">
                    {{ $tc('sw-first-run-wizard.mailerSelection.localOptionSubline') }}
                </span>
            </p>

        </div>

        <div
            class="sw-first-run-wizard-mailer-selection__selection"
            :class="{ 'is--selected': mailAgent === 'smtp' }"
            role="button"
            tabindex="0"
            @click="setMailAgent('smtp')"
            @keydown.enter="setMailAgent('smtp')"
        >

            <mt-icon
                name="regular-server"
                class="sw-first-run-wizard-mailer-selection__selection-icon"
            />
            <p>
                {{ $tc('sw-first-run-wizard.mailerSelection.smtpOption') }}
            </p>

        </div>
    </div>

    <p class="sw-first-run-wizard-mailer-selection__note">
        <span class="sw-first-run-wizard-mailer-selection__text-light">
            {{ $tc('sw-first-run-wizard.mailerSelection.configurationNote') }}
        </span>
    </p>
</div>
{% endblock %}
